home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ Network General.xpl < prev    next >
Text File  |  1999-06-13  |  2KB  |  59 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="2"
  4. "UIPATH"="Network\Login\Options"
  5. "NAME"="Login Options"
  6. "VERSION"="1.3"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Run logon scripts synchronized"
  9. "TEXT 2"="Restore network connections on startup"
  10. "DESCRIPTION 1"="Activate "Run logon scripts synchronized" if the Explorer shouldn't start until the logon script is finished (default: Deactivated)."
  11. "DESCRIPTION 2"="Activate "Restore network connections on startup" to allow Windows NT to restore all previous made network connections on startup (that is, Windows NT starts EXPLORER.EXE)."
  12. "DESCRIPTION 3"="If this option is turned off, Windows will not restore the connections which speeds up startup. The network drives are then re-connected on first access." 
  13. "AUTHOR"="Xteq Systems"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
  16.  
  17.  
  18. sP="HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\"
  19. sV3="RunLogonScriptSync"
  20.  
  21. sP_GC="HKLM\System\CurrentControlSet\Control\NetworkProvider\"
  22. sV_GC="RestoreConnection"
  23. Sub Plugin_Initialize 
  24.  if RegPathExists(sp) then
  25.   i=RegReadValue(sp & sv3)
  26.   if i=1 then SetUIElement 1,true
  27.  
  28.   i=RegReadValue(sp_gc & sv_gc)
  29.   if i=1 then SetUIElement 2,true
  30.  else
  31.   Disable
  32.  end if
  33. End Sub
  34.  
  35. Sub Plugin_CheckData(ElementIndex)
  36. End Sub
  37.  
  38. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  39.  b=GetUIElement(1)
  40.  if b=true then
  41.   Call RegWriteValue(sp & sv3,"1",1)
  42.  else
  43.   Call RegWriteValue(sp & sv3,"0",1)
  44.  end if
  45.  
  46.  b=GetUIElement(2)
  47.  if b=true then
  48.   Call RegWriteValue(sp_gc & sv_gc,"1",2)
  49.  else
  50.   Call RegWriteValue(sp_gc & sv_gc,"0",2)
  51.  end if
  52. End Sub
  53.  
  54. Sub Plugin_Terminate 
  55. End Sub
  56.  
  57.  
  58.  
  59.